package com.qqt.csr.route.service.strategy.skillset;

import com.qqt.csr.route.dto.resp.RouteResultDTO;
import com.qqt.csr.route.dto.resp.SkillSetDTO;
import com.qqt.csr.route.entity.RouteBizRule;
import com.qqt.csr.route.entity.RouteTask;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Random;

/**
 * 技能组随机分配策略
 */
@Slf4j
@Component
public class SkillSetRandomDistribution implements ISkillSetDistribution {

    @Override
    public SkillSetDTO distribution(RouteTask routeTask, List<SkillSetDTO> skillSetConfigList) {
        return skillSetConfigList.get(new Random().nextInt(skillSetConfigList.size()));
    }
}
